-- GENERATED SPELL FOR [Stormhide] --


function spell0_3238(pUnit, Event) --@Head Butt,n/a--
pUnit:FullCastSpellOnTarget(6730,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3238', 2308, 1)
end

function spell1_3238(pUnit, Event) --@Lizard Bolt,n/a--
pUnit:FullCastSpellOnTarget(5401,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3238', 2000, 1)
end

function Sorts_3238(pUnit, Event)
local choix_sorts_3238 = math.random(0, 1)
if choix_sorts_3238 == 0 then
pUnit:RegisterEvent('spell0_3238', 1, 1)
end
if choix_sorts_3238 == 1 then
pUnit:RegisterEvent('spell1_3238', 1, 1)
end
end

function mob3238_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3238', math.random(1500, 3000), 1)
end

function mob3238_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3238_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3238_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3238, 1, 'mob3238_Action')
RegisterUnitEvent(3238, 2, 'mob3238_Leave')
RegisterUnitEvent(3238, 3, 'mob3238_Kill')
RegisterUnitEvent(3238, 4, 'mob3238_Die')
